#ifndef Resource_h
#define Resource_h

#define PAGE_FAULT -1

#include <map>
using std::map;

typedef char byte;

typedef struct Page{
	int id;
	int pid;
	byte* data;
	bool dirty;
	bool reference;
	int referenceTime;
} Page;

typedef struct PCB{
	int pid;
	int userPageStart;
	int userPageNum;
	int kernelPageStart;
	int kernelPageNum;
	int virtualTime;
} PCB;

typedef map<int,PCB*> PCBS;

#endif
